package org.yogurtcat.server.common.payment.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.Repository;
import org.yogurtcat.server.common.constant.PaymentType;
import org.yogurtcat.server.common.payment.domain.Payment;

public interface PaymentRepository extends Repository<Payment, Long>, JpaSpecificationExecutor<Payment> {

	Payment save(Payment payment);

	void delete(Payment payment);

	Payment findByType(PaymentType type);
}
